/* 顶部容器 */
.header-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
    padding: 0 20px;
    justify-content: space-between;
}

/* Logo区域 */
.logo-area {
    flex: 0 0 200px;
}
.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}
.logo-img {
    width: 40px;
    height: 40px;
    margin-right: 10px;
    border-radius: 18px;
}
.logo-text {
    font-size: 24px;
    font-weight: 600;
    color: #ff7f50;
}


.main-nav {
    display: flex;
    gap: 30px;
}

.nav-item {
    color: #333;
    text-decoration: none;
    padding: 5px 0;
}

.nav-item:hover {
    color: #ff4400;
    border-bottom: 2px solid #ff4400;
}

/* 搜索区域 */
.search-area {
    flex: 1;
    max-width: 500px;
    margin: 0 30px;
}
.search-box {
    position: relative;
    display: flex;
    align-items: center;
}
.search-input {
    width: 100% !important;
    height: 36px;
    padding: 0 15px !important;
    border: 1px solid #e5e5e5 !important;
    border-radius: 20px !important;
    font-size: 14px;
    transition: all 0.3s;
}
.search-input:focus {
    border-color: #ff7f50;
    outline: none;
}
.search-btn {
    position: absolute;
    right: 8px;
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    transition: color 0.3s;
}
.search-btn:hover {
    color: #ff7f50;
}
/* 优化后的用户区域样式 */
.user-area {
    position: relative;
    height: 100%;
}

.user-panel {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 15px;
    cursor: pointer;
    transition: background 0.3s;
}

.user-panel:hover {
    background: rgba(255,68,0,0.05);
}

.avatar-box {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 8px;
}

.user-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-name {
    font-size: 14px;
    color: #666;
    margin-right: 6px;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.icon-arrow {
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid #666;
    transition: transform 0.3s;
}

/* 优化后的下拉菜单 */
.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 160px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
    margin-top: 8px;
    padding: 8px 0;
}

.user-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown li {
    list-style: none;
}

.user-dropdown a {
    position: relative;
    display: flex;
    align-items: center;
    padding: 10px 16px;
    font-size: 14px;
    color: #666;
    transition: all 0.25s;
}

.user-dropdown a::before {
    content: '';
    position: absolute;
    left: 8px;
    width: 5px;
    height: 5px;
    background: #ff4400;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s;
}

.user-dropdown a:hover {
    background: rgba(255,68,0,0.05);
    color: #ff4400;
    padding-left: 24px;
}

.user-dropdown a:hover::before {
    opacity: 1;
}

/* common.css 新增图标 */
.icon-rent::before {
    content: "💰";
}

.icon-deposit::before {
    content: "🔒";
}

.icon-search::before {
    content: "🔍";
}